#pragma once
#include "JBaseFile.h"
#include <string>
#include <list>

class JDir : public JBaseFile
{
public:
	JDir(void);
	~JDir(void);
	static std::string RecurseUpFindFolder(std::string currentPath,std::string findDirName);
	static std::list<std::string> RecurseDownDir(std::string _rootPath);
	static bool IsExist(std::string fullDir);
	static std::string CurrentWorkingPath();
	static void CreateDir(std::string _path);
private:
	static bool HasDir(std::string currentPath,std::string findDir);
	static void DownDir(std::string _rootPath,std::list<std::string>& listPath);
};

